{#include header#}
<body>
<script type="text/javascript" src="../js/date.js"></script> 
<!--提示信息-->
<table cellpadding="0" cellspacing="0" width="100%" class="boxtable">
	<tr>
		<td class="box-top-left"></td>
		<td class="box-top-cen"></td>
		<td class="box-top-right"></td>
	</tr>
	<tr>
		<td class="box-main-left"></td>
		<td><!--内容部分-->
			
			<h3>提示信息</h3>
			<div class="text">
				<div class="s3" style="margin-left:1em;">
					<li>本功能搜索数据库中的记录，管理符合条件的记录。</li>
				</div>
			</div>
			
			<!--内容部分结束--></td>
		<td class="box-main-right"></td>
	</tr>
	<tr>
		<td class="box-bottom-left"></td>
		<td class="box-bottom-cen"></td>
		<td class="box-bottom-right"></td>
	</tr>
</table>
<!--提示信息--> 

<!--main-->
<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td class="box-top-left"></td>
		<td class="box-top-cen"></td>
		<td class="box-top-right"></td>
	</tr>
	<tr>
		<td class="box-main-left"></td>
		<td><h3>{#$_leftmenu[$action][item][$job]#}</h3>
			<div class="text">
				<form action="{#$basename#}" method="post" id="mainform" {#$checkSubmit#}>
					<table cellpadding="0" cellspacing="0" width="100%">
						{#if $job == 'article'#}
						{#if $type == 'search'#}
						<tbody class="aligncenter">
							<tr class="tcell_header">
								<td width="10%">文章ID</td>
								<td width="30%">标题</td>
								<td width="10%">作者</td>
								<td width="20%">发布日期</td>
								<td width="20%">IP</td>
								<td width="*">选择</td>
							</tr>
						{#foreach $article as $v#}
						<tr>
							<td>{#$v[tid]#}</td>
							<td><a href="../show.php?tid={#$v[tid]#}" target="_blank">{#$v[subject]#}</a></td>
							<td>{#$v[author]#}</td>
							<td>{#$v[postdate]#}</td>
							<td>{#$v[postip]#}</td>
							<td><input type="checkbox" name="tids[]" value="{#$v[tid]#}" /></td>
						</tr>
						{#/foreach#}
							</tbody>
						
						<tr class="tmult">
							<td>记录数：{#$recordNum#}</td>
							<td colspan="5" style="text-align:right;">{#$multLink#}&nbsp;</td>
						</tr>
						<tr>
							<td class="tbutton" colspan="6"><input type="hidden" name="type" value="del" />
								<input type="button" value="全选" class="btn" name="choseall" onClick="PBchoseAll(this.form)">
								&nbsp;
								<input type="submit" value="删除" class="btn" name="submit"></td>
						</tr>
						{#else#}
						<tr>
							<td><span class="defaultbold">所属分类</span><br /></td>
							<td>{#$option#}</td>
						</tr>
						<tr>
							<td><span class="defaultbold">作者</span><br />
								可使用通配符"*"查找用户，多个用户名之间请用半角逗号“,”分隔。</td>
							<td><input class="input" type="text" name="authors" size="35" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">发布日期</span><br /></td>
							<td><input class="input" onClick="ShowCalendar('postdatemore',2)" id="postdatemore" type="text" name="postdatemore" size="15" />
								&nbsp;&#8254;&nbsp;
								<input class="input" onClick="ShowCalendar('postdateless',2)" id="postdateless" type="text" name="postdateless" size="15" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">查看次数</span><br />
								-1为无限制。</td>
							<td><input class="input" type="text" name="viewsmore" size="15" value="-1" />
								&nbsp;&#8254;&nbsp;
								<input class="input" type="text" name="viewsless" size="15" value="-1" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">评论次数</span><br />
								-1为无限制。</td>
							<td><input class="input" type="text" name="commentsmore" size="15" value="-1" />
								&nbsp;&#8254;&nbsp;
								<input class="input" type="text" name="commentsless" size="15" value="-1" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">Digg次数</span><br />
								-1为无限制。</td>
							<td><input class="input" type="text" name="diggmore" size="15" value="-1" />
								&nbsp;&#8254;&nbsp;
								<input class="input" type="text" name="diggless" size="15" value="-1" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">标签</span><br />
								多个标签之间请用半角逗号“,”分隔。</td>
							<td><input class="input" type="text" name="tags" size="35" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">文章链接地址</span><br />
								文章来源网站的域名，例如：windin6.com，可以使用通配符“*”。</td>
							<td><input class="input" type="text" name="linkhost" size="35" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">发布IP</span><br />
								既可输入完整地址，也可以使用通配符“*”。例如 “192.168.*”(不含引号) 可匹配 192.168.0.0~192.168.255.255 范围内的所有地址。</td>
							<td><input class="input" type="text" name="postip" size="35" /></td>
						</tr>
						<tr>
							<td class="tbutton" colspan="2"><input type="hidden" name="type" value="search" />
								<input type="submit" value="开始搜索" class="btn" name="submit" /></td>
						</tr>
						{#/if#}
						{#elseif $job == 'comment'#}
						{#if $type == 'search'#}
						<tbody class="aligncenter">
							<tr class="tcell_header">
								<td width="10%">文章ID</td>
								<td width="30%">内容摘要</td>
								<td width="10%">作者</td>
								<td width="20%">发布日期</td>
								<td width="20%">IP</td>
								<td width="*">选择</td>
							</tr>
						{#foreach $comment as $v#}
						<tr>
							<td>{#$v[rid]#}</td>
							<td>{#$v[content]#}</td>
							<td>{#$v[author]#}</td>
							<td>{#$v[postdate]#}</td>
							<td>{#$v[postip]#}</td>
							<td><input type="checkbox" name="rids[]" value="{#$v[rid]#}" /></td>
						</tr>
						{#/foreach#}
							</tbody>
						
						<tr class="tmult">
							<td>记录数：{#$recordNum#}</td>
							<td colspan="5" style="text-align:right;">{#$multLink#}&nbsp;</td>
						</tr>
						<tr>
							<td class="tbutton" colspan="6"><input type="hidden" name="type" value="del" />
								<input type="button" value="全选" class="btn" name="choseall" onClick="PBchoseAll(this.form)">
								&nbsp;
								<input type="submit" value="删除" class="btn" name="submit"></td>
						</tr>
						{#else#}
						<tr>
							<td><span class="defaultbold">所属分类</span><br /></td>
							<td>{#$option#}</td>
						</tr>
						<tr>
							<td><span class="defaultbold">作者</span><br />
								可使用通配符"*"查找用户，多个用户名之间请用半角逗号“,”分隔。</td>
							<td><input class="input" type="text" name="authors" size="35" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">发布日期</span><br /></td>
							<td><input class="input" onClick="ShowCalendar('postdatemore',2)" id="postdatemore" type="text" name="postdatemore" size="15" />
								&nbsp;&#8254;&nbsp;
								<input class="input" onClick="ShowCalendar('postdateless',2)" id="postdateless" type="text" name="postdateless" size="15" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">Digg次数</span><br />
								-1为无限制。</td>
							<td><input class="input" type="text" name="diggmore" size="15" value="-1" />
								&nbsp;&#8254;&nbsp;
								<input class="input" type="text" name="diggless" size="15" value="-1" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">发布IP</span><br />
								既可输入完整地址，也可以使用通配符“*”。例如 “192.168.*”(不含引号) 可匹配 192.168.0.0~192.168.255.255 范围内的所有地址。</td>
							<td><input class="input" type="text" name="postip" id="ip" size="35" /></td>
						</tr>
						<tr>
							<td class="tbutton" colspan="2"><input type="hidden" name="type" value="search" />
								<input type="submit" value="开始搜索" class="btn" name="submit" /></td>
						</tr>
						{#/if#}
						{#elseif $job == 'attachment'#}
						{#if $type == 'search'#}
						<tbody class="aligncenter">
							<tr class="tcell_header">
								<td width="5%">选择</td>
								<td width="30%">附件名称</td>
								<td width="10%">大小</td>
								<td width="20%">上传日期</td>
								<td width="15%">下载次数</td>
								<td width="*">操作</td>
							</tr>
						{#foreach $attachment as $v#}
						<tr>
							<td><input type="checkbox" name="aids[]" value="{#$v[aid]#}" /></td>
							<td>{#$v[filename]#}</td>
							<td>{#$v[filesize]#}</td>
							<td>{#$v[uploaddate]#}</td>
							<td>{#$v[downloads]#}</td>
							<td><a href="../show.php?tid={#$v[tid]#}" target="_blank">[主题]</a>&nbsp;&nbsp;<a href="../user.php?uid={#$v[uid]#}" target="_blank">[作者]</a></td>
						</tr>
						{#/foreach#}
							</tbody>
						
						<tr class="tmult">
							<td colspan="2">记录数：{#$recordNum#}</td>
							<td colspan="4" style="text-align:right;">{#$multLink#}&nbsp;</td>
						</tr>
						<tr>
							<td class="tbutton" colspan="6"><input type="hidden" name="type" value="del" />
								<input type="button" value="全选" class="btn" name="choseall" onClick="PBchoseAll(this.form)">
								&nbsp;
								<input type="submit" value="删除" class="btn" name="submit"></td>
						</tr>
						{#else#}
						<tr>
							<td><span class="defaultbold">所属分类</span><br /></td>
							<td>{#$option#}</td>
						</tr>
						<tr>
							<td><span class="defaultbold">作者</span><br />
								可使用通配符"*"查找用户，多个用户名之间请用半角逗号“,”分隔。</td>
							<td><input class="input" type="text" value="" name="author" size="35" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">上传日期</span><br /></td>
							<td><input class="input" onClick="ShowCalendar('uploaddatemore',2)" id="uploaddatemore" type="text" value="" name="uploaddatemore" size="15" />
								&nbsp;&#8254;&nbsp;
								<input class="input" onClick="ShowCalendar('uploaddateless',2)" id="uploaddateless" type="text" name="uploaddateless" size="15" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">文件尺寸</span><br />
								单位：KB，-1为不限制。</td>
							<td><input class="input" type="text" name="filesizemore" size="15" value="-1" />
								&nbsp;&#8254;&nbsp;
								<input class="input" type="text" name="filesizeless" size="15" value="-1" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">所属文章ID</span><br />
								请输入大于0的整数，-1为不限制。</td>
							<td><input class="input" type="text" name="tidmore" size="15" value="-1" />
								&nbsp;&#8254;&nbsp;
								<input class="input" type="text" name="tidless" size="15" value="-1" /></td>
						</tr>
						<tr>
							<td><span class="defaultbold">是否仅限图片</span><br />
								选择“是”， 将只搜索图片文件。</td>
							<td><input class="radio" type="radio" value="1" name="isimg" />
								&nbsp;是&nbsp;&nbsp;
								<input class="radio" type="radio" value="0" name="isimg" checked="checked" />
								&nbsp;否</td>
						</tr>
						<tr>
							<td class="tbutton" colspan="2"><input type="hidden" name="type" value="search" />
								<input type="submit" value="开始搜索" class="btn" name="submit" /></td>
						</tr>
						{#/if#}
						{#/if#}
					</table>
				</form>
			</div></td>
		<td class="box-main-right"></td>
	</tr>
	<tr>
		<td class="box-bottom-left"></td>
		<td class="box-bottom-cen"></td>
		<td class="box-bottom-right"></td>
	</tr>
</table>
{#include footer#}
</body>
</html>